#include<stdio.h>
int main()
{
	int n, a = 0;
	scanf("%d", &n);
	int i, j;
	for (i = 1; i <= 9; i++)
	{
		if (a == 1)
		{
			break;
		}
		for (j = 1; j <= 9; j++)
			if ((n % (i * 10 + j)) == 0 && (n % (i + j * 10)) == 0)
			{
				printf("%d%d", i, j);
				a++;
				break;
			}
	}
	if (a == 0)
		printf("No Answer");
	return 0;
}